package com.jy.adscm.operation.base.controller;

import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.support.SimpleCoreResponse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zyl
 * @Date 2019/7/10 -17:56
 */
@RestController
@RequestMapping("/adscm/operation/websocket")
public class JyWebSocketController {
    @RequestMapping("sendMsg")
    public SimpleCoreResponse queryTaskManagerAnalysis( String msg) throws AdscmSystemException,Exception {
        JyWebSocket.sendInfo(msg);
        return new SimpleCoreResponse("200","发送成功",null);
    }
}
